/*
 * LCplus.c
 */

#include "lc-plus.h"
#include "alu/register.h"
#include "alu/registerset.h"
#include "controller/controller.h"
#include "debugger/debugger.h"
#include "memory/memory.h"
#include "cpu/cpu.h"
#include <stdlib.h>

int main(void)
{
	Memory *memory = new_memory();
	RegisterSet *register_file = new_registerset();
	Cpu *cpu = new_cpu(memory, register_file);
	Debugger *debugger = new_debugger(cpu, cpu_get_controller(cpu), memory);

	debugger_main_loop(debugger);

	return EXIT_SUCCESS;
}
